/*
* JS Application
*
* @package Trait extension
* @category JSA
* @author $Author: sheiko $
* @version $Id: jquery.jsa-trait.js, v 1.0 $
* @license GNU
* @copyright (c) Dmitry Sheiko http://www.dsheiko.com
*/
(function( $ ) {
   /**
    * Extends BaseAbstract with "traits" property processor
    */
    $.jsa.BasePropertyProcessor.processTraitsProperty = function(scope) {
        if (scope.traits) {
            if (!$.isArray(scope.traits)) {
                throw "Traits property must be an array";
            }
            $.each(scope.traits, function(){
                $.extend(true, scope, scope.traits);
            });
        }
    };

})( jQuery );